<link rel="stylesheet" href="__JS__/layui/css/layui.css" media="all">
<link rel="stylesheet" href="__CSS__/font-awesome.min.css">
{block name="body"}
    <form action="" method="post" class="ajax-form" style='padding:0% 1%'>
        <table class="layui-table">
            <thead>
                <tr>
                    <th style="width: 30px;">编号</th>
                    <th>课程名称</th>
                    <th>CPE学分数</th>
                    <th>完成日期</th>
                </tr>
            </thead>
            <tbody>
                {if condition="$data->toArray()['data']"}
                {foreach name="data" item="vo"}
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.program_title}</td>
                    <td>{$vo.cpe_credits}</td>
                    <td>{$vo.completion_date}</td>
                </tr>
                {/foreach}
                {else/}
                <tr>
                    <td colspan="15" style="text-align: center;"><i class="fa fa-exclamation-circle"></i>没有数据</td>
                </tr>
                {/if}
            </tbody>
        </table>
        <!--分页-->
        {$page}
    </form>
    {/block}
